package com.itheima.chapter08.list.Generic.one;

//泛型
public class genericdemo1 {
    public static void main(String[] args) {
        Student s= new Student();
        s.setName("lisi");
        System.out.println(s.getName());
        Teacher t=new Teacher();
        t.setAge(36);
        System.out.println(t.getAge());
        System.out.println("============");
        generic<String> g1 =new generic<>();
        g1.setT("llllin");
        System.out.println(g1.getT());
        generic<Integer> g2 =new generic<>();
        g2.setT(56);
        System.out.println(g2.getT());
        generic<Boolean> g3 = new generic<>();
        g3.setT(true);
        System.out.println(g3.getT());

    }
}
